package test12and13;

public class Test12 {
    @Test
    // 通过JDBC读取员工表与部门表并显示出员工编号、员工姓名、职位、薪资、所在部门名称
    public void readTest() {
        IEmpDao dao = new EmpDaoImpl();
        Emp employee =dao.read(7900);
        System.out.println(employee);
    }

    @Test
    // 通过JDBC修改员工表中编号为7369的员工姓名与职位信息
    public void updateTest() {
        IEmpDao dao = new EmpDaoImpl();
        Emp employee = new Emp();

        employee.setEname("二狗子");
        employee.setJob("职员");

        dao.update(7369, employee);
    }


}
